mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-11 11:50:54 +08:00
Merge branch 'master' into rename-repo-url
This commit is contained in:
Vendored
+1
-1
@@ -5,7 +5,7 @@
|
||||
|
||||
/// <reference path="../jquery/jquery.d.ts" />
|
||||
|
||||
declare module Backbone {
|
||||
declare namespace Backbone {
|
||||
|
||||
interface AddOptions extends Silenceable {
|
||||
at?: number;
|
||||
|
||||
@@ -157,8 +157,8 @@ function test_collection() {
|
||||
|
||||
Backbone.history.start();
|
||||
|
||||
module v1Changes {
|
||||
module events {
|
||||
namespace v1Changes {
|
||||
namespace events {
|
||||
function test_once() {
|
||||
var model = new Employee;
|
||||
model.once('invalid', () => { }, this);
|
||||
@@ -186,7 +186,7 @@ module v1Changes {
|
||||
}
|
||||
}
|
||||
|
||||
module ModelAndCollection {
|
||||
namespace ModelAndCollection {
|
||||
function test_url() {
|
||||
Employee.prototype.url = () => '/employees';
|
||||
EmployeeCollection.prototype.url = () => '/employees';
|
||||
@@ -214,7 +214,7 @@ module v1Changes {
|
||||
}
|
||||
}
|
||||
|
||||
module Model {
|
||||
namespace Model {
|
||||
function test_validationError() {
|
||||
var model = new Employee;
|
||||
if (model.validationError) {
|
||||
@@ -286,7 +286,7 @@ module v1Changes {
|
||||
}
|
||||
}
|
||||
|
||||
module Collection {
|
||||
namespace Collection {
|
||||
function test_fetch() {
|
||||
var collection = new EmployeeCollection;
|
||||
collection.fetch({ reset: true });
|
||||
@@ -302,7 +302,7 @@ module v1Changes {
|
||||
}
|
||||
}
|
||||
|
||||
module Router {
|
||||
namespace Router {
|
||||
function test_navigate() {
|
||||
var router = new Backbone.Router;
|
||||
|
||||
|
||||
@@ -158,8 +158,8 @@ function test_collection() {
|
||||
|
||||
Backbone.history.start();
|
||||
|
||||
module v1Changes {
|
||||
module events {
|
||||
namespace v1Changes {
|
||||
namespace events {
|
||||
function test_once() {
|
||||
var model = new Employee;
|
||||
model.once('invalid', () => { }, this);
|
||||
@@ -187,7 +187,7 @@ module v1Changes {
|
||||
}
|
||||
}
|
||||
|
||||
module ModelAndCollection {
|
||||
namespace ModelAndCollection {
|
||||
function test_url() {
|
||||
Employee.prototype.url = () => '/employees';
|
||||
EmployeeCollection.prototype.url = () => '/employees';
|
||||
@@ -215,7 +215,7 @@ module v1Changes {
|
||||
}
|
||||
}
|
||||
|
||||
module Model {
|
||||
namespace Model {
|
||||
function test_validationError() {
|
||||
var model = new Employee;
|
||||
if (model.validationError) {
|
||||
@@ -287,7 +287,7 @@ module v1Changes {
|
||||
}
|
||||
}
|
||||
|
||||
module Collection {
|
||||
namespace Collection {
|
||||
function test_fetch() {
|
||||
var collection = new EmployeeCollection;
|
||||
collection.fetch({ reset: true });
|
||||
@@ -303,7 +303,7 @@ module v1Changes {
|
||||
}
|
||||
}
|
||||
|
||||
module Router {
|
||||
namespace Router {
|
||||
function test_navigate() {
|
||||
var router = new Backbone.Router;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user