dist/ember-runtime.js in ember-source-1.5.0.beta.1.1 vs dist/ember-runtime.js in ember-source-1.5.0.beta.2
- old
+ new
@@ -204,11 +204,11 @@
* @copyright Copyright 2011-2014 Tilde Inc. and contributors
* Portions Copyright 2006-2011 Strobe Inc.
* Portions Copyright 2008-2011 Apple Inc. All rights reserved.
* @license Licensed under MIT license
* See https://raw.github.com/emberjs/ember.js/master/LICENSE
- * @version 1.5.0-beta.1.1
+ * @version 1.5.0-beta.2
*/
(function() {
var define, requireModule, require, requirejs;
@@ -287,11 +287,11 @@
The core Runtime framework is based on the jQuery API with a number of
performance optimizations.
@class Ember
@static
- @version 1.5.0-beta.1
+ @version 1.5.0-beta.2
*/
if ('undefined' === typeof Ember) {
// Create core object. Make it act like an instance of Ember.Namespace so that
// objects assigned to it are given a sane string representation.
@@ -314,14 +314,14 @@
/**
@property VERSION
@type String
- @default '1.5.0-beta.1'
+ @default '1.5.0-beta.2'
@static
*/
-Ember.VERSION = '1.5.0-beta.1';
+Ember.VERSION = '1.5.0-beta.2';
/**
Standard environmental variables. You can define these in a global `EmberENV`
variable before loading Ember to control various configuration settings.
@@ -3531,11 +3531,12 @@
Logs the arguments to the console.
You can pass as many arguments as you want and they will be joined together with a space.
```javascript
var foo = 1;
- Ember.Logger.log('log value of foo:', foo); // "log value of foo: 1" will be printed to the console
+ Ember.Logger.log('log value of foo:', foo);
+ // "log value of foo: 1" will be printed to the console
```
@method log
@for Ember.Logger
@param {*} arguments
@@ -3545,11 +3546,12 @@
/**
Prints the arguments to the console with a warning icon.
You can pass as many arguments as you want and they will be joined together with a space.
```javascript
- Ember.Logger.warn('Something happened!'); // "Something happened!" will be printed to the console with a warning icon.
+ Ember.Logger.warn('Something happened!');
+ // "Something happened!" will be printed to the console with a warning icon.
```
@method warn
@for Ember.Logger
@param {*} arguments
@@ -3559,11 +3561,12 @@
/**
Prints the arguments to the console with an error icon, red text and a stack trace.
You can pass as many arguments as you want and they will be joined together with a space.
```javascript
- Ember.Logger.error('Danger! Danger!'); // "Danger! Danger!" will be printed to the console in red text.
+ Ember.Logger.error('Danger! Danger!');
+ // "Danger! Danger!" will be printed to the console in red text.
```
@method error
@for Ember.Logger
@param {*} arguments
@@ -3574,11 +3577,12 @@
Logs the arguments to the console.
You can pass as many arguments as you want and they will be joined together with a space.
```javascript
var foo = 1;
- Ember.Logger.info('log value of foo:', foo); // "log value of foo: 1" will be printed to the console
+ Ember.Logger.info('log value of foo:', foo);
+ // "log value of foo: 1" will be printed to the console
```
@method info
@for Ember.Logger
@param {*} arguments
@@ -3589,11 +3593,12 @@
Logs the arguments to the console in blue text.
You can pass as many arguments as you want and they will be joined together with a space.
```javascript
var foo = 1;
- Ember.Logger.debug('log value of foo:', foo); // "log value of foo: 1" will be printed to the console
+ Ember.Logger.debug('log value of foo:', foo);
+ // "log value of foo: 1" will be printed to the console
```
@method debug
@for Ember.Logger
@param {*} arguments
@@ -3802,17 +3807,19 @@
/**
To get multiple properties at once, call `Ember.getProperties`
with an object followed by a list of strings or an array:
```javascript
- Ember.getProperties(record, 'firstName', 'lastName', 'zipCode'); // { firstName: 'John', lastName: 'Doe', zipCode: '10011' }
+ Ember.getProperties(record, 'firstName', 'lastName', 'zipCode');
+ // { firstName: 'John', lastName: 'Doe', zipCode: '10011' }
```
is equivalent to:
```javascript
- Ember.getProperties(record, ['firstName', 'lastName', 'zipCode']); // { firstName: 'John', lastName: 'Doe', zipCode: '10011' }
+ Ember.getProperties(record, ['firstName', 'lastName', 'zipCode']);
+ // { firstName: 'John', lastName: 'Doe', zipCode: '10011' }
```
@method getProperties
@param obj
@param {String...|Array} list of keys to get
@@ -4950,11 +4957,11 @@
hadCachedValue = false,
cache = meta.cache,
funcArgLength, cachedValue, ret;
if (this._readOnly) {
- throw new Ember.Error('Cannot Set: ' + keyName + ' on: ' + Ember.inspect(obj));
+ throw new Ember.Error('Cannot set read-only property "' + keyName + '" on object: ' + Ember.inspect(obj));
}
this._suspended = obj;
try {
@@ -7096,11 +7103,11 @@
```
Immediate allows you to run the function immediately, but debounce
other calls for this function until the wait time has elapsed. If
`debounce` is called again before the specified time has elapsed,
- the timer is reset and the entire period msut pass again before
+ the timer is reset and the entire period must pass again before
the method can be called again.
```javascript
var myFunc = function() { console.log(this.name + ' ran.'); };
var myContext = {name: 'debounce'};
@@ -13602,11 +13609,13 @@
processNamespace([this.toString()], this, {});
},
destroy: function() {
var namespaces = Ember.Namespace.NAMESPACES;
+
Ember.lookup[this.toString()] = undefined;
+ delete Ember.Namespace.NAMESPACES_BY_ID[this.toString()];
namespaces.splice(indexOf.call(namespaces, this), 1);
this._super();
}
});
@@ -14306,11 +14315,11 @@
can pass an optional second argument with the target value. Otherwise
this will match any property that evaluates to `true`.
@method filterBy
@param {String} key the property to test
- @param {String} [value] optional value to test against.
+ @param {*} [value] optional value to test against.
@return {Array} filtered array
*/
filterBy: function(key, value) {
return this.filter(iter.apply(this, arguments));
},
@@ -16691,10 +16700,10 @@
@method computed.filterBy
@for Ember
@param {String} dependentKey
@param {String} propertyKey
- @param {String} value
+ @param {*} value
@return {Ember.ComputedProperty} the filtered array
*/
Ember.computed.filterBy = function(dependentKey, propertyKey, value) {
var callback;