what, CI Reporter?

October 18, 2012 Max Brunsfeld

Helps

  • iPad/iOS – full page redraws

iOS devices do a full-page redraw when we introduce new height at the bottom of the page or when backgrounding/foregrounding the browser. How to avoid that?

  • Jasmine not working when run through jenkins

Jasmine:ci on firefox fails on CI only with the error:

/home/ci/.rvm/gems/ruby-1.9.3-p194@gemini/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/remote/response.rb:52:in `assert_ok’: ReferenceError: jsApiReporter is not defined (Selenium::WebDriver::Error::JavascriptError)

Anyone seen this? It runs great on the command line when we ssh into the ci box, but fails when run through Jenkins.

Interestings

  • JS – objects on prototypes

In javascript, if you give a prototype an object property, then mutating that object will do so for all instances of the class.

So if you do this:

MyClass.prototype.things = {
  "foo": "cool"
};

var instance1 = new MyClass(),
instance2 = new MyClass();

instance1.things["bar"] = 5;

then

instance2.things["bar"] === 5

About the Author

Biography

Previous
Custom Transforms in Ember Data Rev 6
Custom Transforms in Ember Data Rev 6

Ember Data is a library for loading models from a persistence layer (such as a JSON API), updating those mo...

Next
Data Science: Neither Elementary Nor Magic
Data Science: Neither Elementary Nor Magic

A recent GigaOm post, “Why becoming a data scientist might be easier than you think”, has fired up consider...