Skip to content
Browse files

Updated to official 0.17.0 release

  • Loading branch information...
1 parent 17c8dc3 commit 47cb445e2b0d4ace51f56d2c677f2bfc35b3dc60 Kevin Malakoff committed Mar 30, 2013
View
2 package.json
@@ -27,7 +27,7 @@
"knockout": "2.2.1",
"backbone-relational": ">=0.8.0plus",
"backbone-modelref": ">=0.1.5",
- "knockback": ">=0.17.0pre",
+ "knockback": ">=0.17.0",
"lodash": ">=0.6.1"
},
View
2 packages/npm/package.json
@@ -12,7 +12,7 @@
},
"dependencies": {
- "knockback": ">=0.17.0pre",
+ "knockback": ">=0.17.0",
"backbone-relational": ">=0.8.0",
"backbone-modelref": ">=0.1.5"
},
View
2 test/core/test-amd.coffee
@@ -5,7 +5,7 @@ try
'backbone': "../../vendor/test/backbone-1.0.0"
'backbone-relational': "../../vendor/test/backbone-relational-0.6.0"
'knockout': "../../vendor/test/knockout-2.2.1"
- 'knockback': "../../vendor/test/knockback-core-0.17.0pre"
+ 'knockback': "../../vendor/test/knockback-core-0.17.0"
'knockback-inspector': "../../knockback-inspector"
shim:
underscore:
View
2 test/core/test.html
@@ -3,7 +3,7 @@
<head>
<title>Knockback-Inspector Test Suite</title>
<!-- LIBRARY DEPENDENCIES -->
- <script type="text/javascript" src="../../vendor/knockback-core-stack-0.17.0pre.js"></script>
+ <script type="text/javascript" src="../../vendor/knockback-core-stack-0.17.0.js"></script>
<script type="text/javascript" src="../../vendor/backbone-relational-0.8.0plus.js"></script>
<!-- LIBRARY -->
View
2 test/core/test.min.html
@@ -3,7 +3,7 @@
<head>
<title>Knockback-Inspector Test Suite (Production)</title>
<!-- LIBRARY DEPENDENCIES -->
- <script type="text/javascript" src='../../vendor/knockback-core-stack-0.17.0pre.js'></script>
+ <script type="text/javascript" src='../../vendor/knockback-core-stack-0.17.0.js'></script>
<script type="text/javascript" src="../../vendor/backbone-relational-0.8.0plus.js"></script>
<!-- LIBRARY -->
View
2 test/interactive/index.html
@@ -6,7 +6,7 @@
<!-- DEPENDENCIES -->
<script type="text/javascript" src='../../vendor/jquery-1.9.1.js'></script>
- <script type="text/javascript" src='../../vendor/knockback-core-stack-0.17.0pre.js'></script>
+ <script type="text/javascript" src='../../vendor/knockback-core-stack-0.17.0.js'></script>
<script type="text/javascript" src="../../vendor/backbone-relational-0.8.0plus.js"></script>
<!-- KNOCKBACK-INSPECTOR LIBRARY -->
View
2 tutorials/coffeescript/step1/index.html
@@ -6,7 +6,7 @@
<!-- DEPENDENCIES -->
<script type="text/javascript" src='../../../vendor/jquery-1.9.1.js'></script>
- <script type="text/javascript" src='../../../vendor/knockback-core-stack-0.17.0pre.js'></script>
+ <script type="text/javascript" src='../../../vendor/knockback-core-stack-0.17.0.js'></script>
<script type="text/javascript" src="../../../vendor/backbone-relational-0.8.0plus.js"></script>
<!-- KNOCKBACK-INSPECTOR LIBRARY -->
View
2 tutorials/coffeescript/step2/index.html
@@ -6,7 +6,7 @@
<!-- DEPENDENCIES -->
<script type="text/javascript" src='../../../vendor/jquery-1.9.1.js'></script>
- <script type="text/javascript" src='../../../vendor/knockback-core-stack-0.17.0pre.js'></script>
+ <script type="text/javascript" src='../../../vendor/knockback-core-stack-0.17.0.js'></script>
<script type="text/javascript" src="../../../vendor/backbone-relational-0.8.0plus.js"></script>
<!-- KNOCKBACK-INSPECTOR LIBRARY -->
View
2 tutorials/coffeescript/step3/index.html
@@ -6,7 +6,7 @@
<!-- DEPENDENCIES -->
<script type="text/javascript" src='../../../vendor/jquery-1.9.1.js'></script>
- <script type="text/javascript" src='../../../vendor/knockback-core-stack-0.17.0pre.js'></script>
+ <script type="text/javascript" src='../../../vendor/knockback-core-stack-0.17.0.js'></script>
<script type="text/javascript" src="../../../vendor/backbone-relational-0.8.0plus.js"></script>
<!-- KNOCKBACK-INSPECTOR LIBRARY -->
View
2 tutorials/coffeescript/step4/index.html
@@ -6,7 +6,7 @@
<!-- DEPENDENCIES -->
<script type="text/javascript" src='../../../vendor/jquery-1.9.1.js'></script>
- <script type="text/javascript" src='../../../vendor/knockback-core-stack-0.17.0pre.js'></script>
+ <script type="text/javascript" src='../../../vendor/knockback-core-stack-0.17.0.js'></script>
<script type="text/javascript" src="../../../vendor/backbone-relational-0.8.0plus.js"></script>
<!-- KNOCKBACK-INSPECTOR LIBRARY -->
View
2 tutorials/javascript/step1/index.html
@@ -6,7 +6,7 @@
<!-- DEPENDENCIES -->
<script type="text/javascript" src='../../../vendor/jquery-1.9.1.js'></script>
- <script type="text/javascript" src='../../../vendor/knockback-core-stack-0.17.0pre.js'></script>
+ <script type="text/javascript" src='../../../vendor/knockback-core-stack-0.17.0.js'></script>
<script type="text/javascript" src="../../../vendor/backbone-relational-0.8.0plus.js"></script>
<!-- KNOCKBACK-INSPECTOR LIBRARY -->
View
2 tutorials/javascript/step2/index.html
@@ -6,7 +6,7 @@
<!-- DEPENDENCIES -->
<script type="text/javascript" src='../../../vendor/jquery-1.9.1.js'></script>
- <script type="text/javascript" src='../../../vendor/knockback-core-stack-0.17.0pre.js'></script>
+ <script type="text/javascript" src='../../../vendor/knockback-core-stack-0.17.0.js'></script>
<script type="text/javascript" src="../../../vendor/backbone-relational-0.8.0plus.js"></script>
<!-- KNOCKBACK-INSPECTOR LIBRARY -->
View
2 tutorials/javascript/step3/index.html
@@ -6,7 +6,7 @@
<!-- DEPENDENCIES -->
<script type="text/javascript" src='../../../vendor/jquery-1.9.1.js'></script>
- <script type="text/javascript" src='../../../vendor/knockback-core-stack-0.17.0pre.js'></script>
+ <script type="text/javascript" src='../../../vendor/knockback-core-stack-0.17.0.js'></script>
<script type="text/javascript" src="../../../vendor/backbone-relational-0.8.0plus.js"></script>
<!-- KNOCKBACK-INSPECTOR LIBRARY -->
View
2 tutorials/javascript/step4/index.html
@@ -6,7 +6,7 @@
<!-- DEPENDENCIES -->
<script type="text/javascript" src='../../../vendor/jquery-1.9.1.js'></script>
- <script type="text/javascript" src='../../../vendor/knockback-core-stack-0.17.0pre.js'></script>
+ <script type="text/javascript" src='../../../vendor/knockback-core-stack-0.17.0.js'></script>
<script type="text/javascript" src="../../../vendor/backbone-relational-0.8.0plus.js"></script>
<!-- KNOCKBACK-INSPECTOR LIBRARY -->
View
32 vendor/knockback-core-stack-0.17.0pre.js → vendor/knockback-core-stack-0.17.0.js
@@ -1,5 +1,5 @@
/*
- knockback-core-stack.js 0.17.0pre
+ knockback-core-stack.js 0.17.0
(c) 2011-2013 Kevin Malakoff - http://kmalakoff.github.com/knockback/
License: MIT (http://www.opensource.org/licenses/mit-license.php)
Dependencies: Knockout.js, Backbone.js, and Underscore.js.
@@ -6424,7 +6424,7 @@ ko.exportSymbol('nativeTemplateEngine', ko.nativeTemplateEngine);
}());
})();
/*
- knockback-core.js 0.17.0pre
+ knockback-core.js 0.17.0
(c) 2011-2013 Kevin Malakoff - http://kmalakoff.github.com/knockback/
License: MIT (http://www.opensource.org/licenses/mit-license.php)
Dependencies: Knockout.js, Backbone.js, and Underscore.js.
@@ -6441,21 +6441,21 @@ ko.exportSymbol('nativeTemplateEngine', ko.nativeTemplateEngine);
}
})(function() {// Generated by CoffeeScript 1.6.2
/*
- knockback-core.js 0.17.0pre
+ knockback-core.js 0.17.0
(c) 2011-2013 Kevin Malakoff.
Knockback.js is freely distributable under the MIT license.
See the following for full license details:
https://github.com/kmalakoff/knockback/blob/master/LICENSE
Dependencies: Knockout.js, Backbone.js, and Underscore.js.
*/
-var Backbone, COMPARE_ASCENDING, COMPARE_DESCENDING, COMPARE_EQUAL, KB_TYPE_ARRAY, KB_TYPE_COLLECTION, KB_TYPE_MODEL, KB_TYPE_SIMPLE, KB_TYPE_UNKNOWN, addStatisticsEvent, collapseOptions, copyProps, e, kb, ko, onReady, _, _argumentsAddKey, _arraySplice, _legacyWarning, _throwMissing, _throwUnexpected, _unwrapModels, _unwrapObservable, _wrappedKey,
+var COMPARE_ASCENDING, COMPARE_DESCENDING, COMPARE_EQUAL, KB_TYPE_ARRAY, KB_TYPE_COLLECTION, KB_TYPE_MODEL, KB_TYPE_SIMPLE, KB_TYPE_UNKNOWN, addStatisticsEvent, collapseOptions, copyProps, e, kb, ko, onReady, _, _argumentsAddKey, _arraySplice, _legacyWarning, _throwMissing, _throwUnexpected, _unwrapModels, _unwrapObservable, _wrappedKey,
__bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
kb = (function() {
function kb() {}
- kb.VERSION = '0.17.0pre';
+ kb.VERSION = '0.17.0';
kb.TYPE_UNKNOWN = 0;
@@ -6549,6 +6549,9 @@ kb = (function() {
}
kb.releaseOnNodeRemove(view_model, el);
observable.dispose();
+ if (view_model.afterRender && !options.afterRender) {
+ view_model.afterRender(el);
+ }
return el;
};
@@ -6569,7 +6572,7 @@ if (typeof exports !== 'undefined') {
if (this.Parse) {
kb._ = _ = this.Parse._;
- kb.PARSE = true;
+ kb.Parse = this.Parse;
kb.Collection = this.Parse.Collection;
kb.Model = this.Parse.Object;
kb.Events = this.Parse.Events;
@@ -6599,11 +6602,10 @@ if (this.Parse) {
}
});
}
- kb.BACKBONE = true;
- Backbone = !this.Backbone && (typeof require !== 'undefined') ? require('backbone') : this.Backbone;
- kb.Collection = Backbone.Collection;
- kb.Model = Backbone.Model;
- kb.Events = Backbone.Events;
+ kb.Backbone = !this.Backbone && (typeof require !== 'undefined') ? require('backbone') : this.Backbone;
+ kb.Collection = kb.Backbone.Collection;
+ kb.Model = kb.Backbone.Model;
+ kb.Events = kb.Backbone.Events;
}
kb.ko = ko = !this.ko && (typeof require !== 'undefined') ? require('knockout') : this.ko;
@@ -6879,7 +6881,7 @@ kb.utils = (function() {
if (creator) {
return creator;
}
- if (owner && kb.BACKBONE && Backbone.RelationalModel && (owner instanceof Backbone.RelationalModel)) {
+ if (owner && kb.Backbone && kb.Backbone.RelationalModel && (owner instanceof kb.Backbone.RelationalModel)) {
key = _unwrapObservable(key);
relation = _.find(owner.getRelations(), function(test) {
return test.key === key;
@@ -7239,7 +7241,7 @@ kb.EventWatcher = (function() {
this.model_ref.release();
this.model_ref = null;
}
- if (kb.BACKBONE && Backbone.ModelRef && (new_emitter instanceof Backbone.ModelRef)) {
+ if (kb.Backbone && kb.Backbone.ModelRef && (new_emitter instanceof kb.Backbone.ModelRef)) {
this.model_ref = new_emitter;
this.model_ref.retain();
this.model_ref.bind('loaded', this.__kb._onModelLoaded);
@@ -7315,7 +7317,7 @@ kb.EventWatcher = (function() {
callbacks.list.push(info);
}
if (this.ee) {
- if (kb.BACKBONE && Backbone.RelationalModel && (this.ee instanceof Backbone.RelationalModel) && _.contains(event_names, 'change')) {
+ if (kb.Backbone && kb.Backbone.RelationalModel && (this.ee instanceof kb.Backbone.RelationalModel) && _.contains(event_names, 'change')) {
this._modelBindRelatationalInfo('change', info);
}
info.emitter(this.ee) && info.emitter;
@@ -7352,7 +7354,7 @@ kb.EventWatcher = (function() {
EventWatcher.prototype._onModelLoaded = function(model) {
var callbacks, event_name, info, is_relational, list, _i, _len, _ref;
- is_relational = kb.BACKBONE && Backbone.RelationalModel && (model instanceof Backbone.RelationalModel);
+ is_relational = kb.Backbone && kb.Backbone.RelationalModel && (model instanceof kb.Backbone.RelationalModel);
this.ee = model;
_ref = this.__kb.callbacks;
for (event_name in _ref) {
View
3,622 vendor/knockout-2.2.1.js
3,622 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
30 vendor/test/knockback-core-0.17.0pre.js → vendor/test/knockback-core-0.17.0.js
@@ -1,5 +1,5 @@
/*
- knockback-core.js 0.17.0pre
+ knockback-core.js 0.17.0
(c) 2011-2013 Kevin Malakoff - http://kmalakoff.github.com/knockback/
License: MIT (http://www.opensource.org/licenses/mit-license.php)
Dependencies: Knockout.js, Backbone.js, and Underscore.js.
@@ -16,21 +16,21 @@
}
})(function() {// Generated by CoffeeScript 1.6.2
/*
- knockback-core.js 0.17.0pre
+ knockback-core.js 0.17.0
(c) 2011-2013 Kevin Malakoff.
Knockback.js is freely distributable under the MIT license.
See the following for full license details:
https://github.com/kmalakoff/knockback/blob/master/LICENSE
Dependencies: Knockout.js, Backbone.js, and Underscore.js.
*/
-var Backbone, COMPARE_ASCENDING, COMPARE_DESCENDING, COMPARE_EQUAL, KB_TYPE_ARRAY, KB_TYPE_COLLECTION, KB_TYPE_MODEL, KB_TYPE_SIMPLE, KB_TYPE_UNKNOWN, addStatisticsEvent, collapseOptions, copyProps, e, kb, ko, onReady, _, _argumentsAddKey, _arraySplice, _legacyWarning, _throwMissing, _throwUnexpected, _unwrapModels, _unwrapObservable, _wrappedKey,
+var COMPARE_ASCENDING, COMPARE_DESCENDING, COMPARE_EQUAL, KB_TYPE_ARRAY, KB_TYPE_COLLECTION, KB_TYPE_MODEL, KB_TYPE_SIMPLE, KB_TYPE_UNKNOWN, addStatisticsEvent, collapseOptions, copyProps, e, kb, ko, onReady, _, _argumentsAddKey, _arraySplice, _legacyWarning, _throwMissing, _throwUnexpected, _unwrapModels, _unwrapObservable, _wrappedKey,
__bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
kb = (function() {
function kb() {}
- kb.VERSION = '0.17.0pre';
+ kb.VERSION = '0.17.0';
kb.TYPE_UNKNOWN = 0;
@@ -124,6 +124,9 @@ kb = (function() {
}
kb.releaseOnNodeRemove(view_model, el);
observable.dispose();
+ if (view_model.afterRender && !options.afterRender) {
+ view_model.afterRender(el);
+ }
return el;
};
@@ -144,7 +147,7 @@ if (typeof exports !== 'undefined') {
if (this.Parse) {
kb._ = _ = this.Parse._;
- kb.PARSE = true;
+ kb.Parse = this.Parse;
kb.Collection = this.Parse.Collection;
kb.Model = this.Parse.Object;
kb.Events = this.Parse.Events;
@@ -174,11 +177,10 @@ if (this.Parse) {
}
});
}
- kb.BACKBONE = true;
- Backbone = !this.Backbone && (typeof require !== 'undefined') ? require('backbone') : this.Backbone;
- kb.Collection = Backbone.Collection;
- kb.Model = Backbone.Model;
- kb.Events = Backbone.Events;
+ kb.Backbone = !this.Backbone && (typeof require !== 'undefined') ? require('backbone') : this.Backbone;
+ kb.Collection = kb.Backbone.Collection;
+ kb.Model = kb.Backbone.Model;
+ kb.Events = kb.Backbone.Events;
}
kb.ko = ko = !this.ko && (typeof require !== 'undefined') ? require('knockout') : this.ko;
@@ -454,7 +456,7 @@ kb.utils = (function() {
if (creator) {
return creator;
}
- if (owner && kb.BACKBONE && Backbone.RelationalModel && (owner instanceof Backbone.RelationalModel)) {
+ if (owner && kb.Backbone && kb.Backbone.RelationalModel && (owner instanceof kb.Backbone.RelationalModel)) {
key = _unwrapObservable(key);
relation = _.find(owner.getRelations(), function(test) {
return test.key === key;
@@ -814,7 +816,7 @@ kb.EventWatcher = (function() {
this.model_ref.release();
this.model_ref = null;
}
- if (kb.BACKBONE && Backbone.ModelRef && (new_emitter instanceof Backbone.ModelRef)) {
+ if (kb.Backbone && kb.Backbone.ModelRef && (new_emitter instanceof kb.Backbone.ModelRef)) {
this.model_ref = new_emitter;
this.model_ref.retain();
this.model_ref.bind('loaded', this.__kb._onModelLoaded);
@@ -890,7 +892,7 @@ kb.EventWatcher = (function() {
callbacks.list.push(info);
}
if (this.ee) {
- if (kb.BACKBONE && Backbone.RelationalModel && (this.ee instanceof Backbone.RelationalModel) && _.contains(event_names, 'change')) {
+ if (kb.Backbone && kb.Backbone.RelationalModel && (this.ee instanceof kb.Backbone.RelationalModel) && _.contains(event_names, 'change')) {
this._modelBindRelatationalInfo('change', info);
}
info.emitter(this.ee) && info.emitter;
@@ -927,7 +929,7 @@ kb.EventWatcher = (function() {
EventWatcher.prototype._onModelLoaded = function(model) {
var callbacks, event_name, info, is_relational, list, _i, _len, _ref;
- is_relational = kb.BACKBONE && Backbone.RelationalModel && (model instanceof Backbone.RelationalModel);
+ is_relational = kb.Backbone && kb.Backbone.RelationalModel && (model instanceof kb.Backbone.RelationalModel);
this.ee = model;
_ref = this.__kb.callbacks;
for (event_name in _ref) {

0 comments on commit 47cb445

Please sign in to comment.
Something went wrong with that request. Please try again.