Commit d1d06d2d authored by Sindre Sorhus's avatar Sindre Sorhus

Merge pull request #753 from arleytriana/patch-1

use the sap.ui.Device API instead of jQuery plugin
parents 958622a9 b0d725da
......@@ -45,7 +45,7 @@
newTodo = new todo.SmartTextField('new-todo', {
placeholder: 'What needs to be done?',
// Don't autofocus in case of MSIE and Opera as both hide placeholder on focus
autofocus: !$.browser.msie && !$.browser.opera
autofocus: !sap.ui.Device.browser.internet_explorer && !$.browser.opera
}).attachChange(function () {
oController.createTodo(this.getProperty('value'));
this.setValue('');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment